package post

import "context"

type Server interface {
	// CreateBlog 创建博客
	CreateBlog(ctx context.Context, request *CreateBlogRequest) (*Blog, error)
	// UpdateBlog 更新博客
	UpdateBlog(ctx context.Context, request *UpdateBlogRequest) (*Blog, error)
	// DeleteBlog 删除博客
	DeleteBlog(ctx context.Context, request *DeleteOrGetBlogRequest) (*Blog, error)
	// QueryBlog 查询博客
	QueryBlog(ctx context.Context, request *QueryBlogRequest) (*BlogsList, error)
	// GetDetailsBlog 获取博客详情
	GetDetailsBlog(ctx context.Context, request *DeleteOrGetBlogRequest) (*Blog, error)
}
